#include "../include/EchoServer.h"
#include "../include/MyLogger.hpp"
#include "../include/MySQLClient.hpp"



int main()
{
    jpx::MyLogger::get_instance().initialize_logger();
    
    rlt::MySQLClient::getInstance()->connect("127.0.0.1", "root", "159174428", "project2");

    rlt::MySQLClient::getInstance()->write_operation("CREATE TABLE `account`(user_id int NOT NULL AUTO_INCREMENT,user_name varchar(99),user_salt varchar(100) DEFAULT '', user_encrypted VARCHAR(100)DEFAULT '',PRIMARY KEY(user_id));");

    rocket::EchoServer server(10086);
    server.start();

    return 0;
}

